package com.system.integralserver.mapper;

import com.system.commonutils.pojo.UsePoints;
import com.system.integralserver.pojo.IntegralInfo;
import com.system.integralserver.pojo.Orders;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: ll
 * Date: 2020/07/09 15:08
 * Description:
 * Version: V1.0
 */
@Repository
public interface IntegralMapper {
    Orders getMessage(Integer order_id);

    int createIntegral(IntegralInfo integralInfo);

    Integer useIntegral(UsePoints usePoints);

    List<UsePoints> queryIntegralInfo(UsePoints usePoints);

    Integer countInfo(UsePoints usePoints);
}
